package com.wonders.framework.auto.builder.code.entity.vo;

import com.wonders.framework.entity.vo.BaseVo;

/**
 * 创建列示例
 * 
 * @author WuBin
 * 
 */
public class BuildColumn extends BaseVo {

	/**
	 * 属性名称
	 */
	private String propertyName;

	/**
	 * 方法名称
	 */
	private String functionName;

	/**
	 * 数据类型
	 */
	private String typeName;

	/**
	 * 最大长度
	 */
	private String maxLength;

	/**
	 * 是否必要
	 */
	private boolean required;

	/**
	 * 是否是主键
	 */
	private boolean primary;

	/**
	 * 属性含义
	 */
	private String propertyMean;

	public String getPropertyName() {
		return propertyName;
	}

	public String getFunctionName() {
		return functionName;
	}

	public String getTypeName() {
		return typeName;
	}

	public String getMaxLength() {
		return maxLength;
	}

	public boolean isRequired() {
		return required;
	}

	public boolean isPrimary() {
		return primary;
	}

	public String getPropertyMean() {
		return propertyMean;
	}

	public void setPropertyName(String propertyName) {
		this.propertyName = propertyName;
	}

	public void setFunctionName(String functionName) {
		this.functionName = functionName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

	public void setMaxLength(String maxLength) {
		this.maxLength = maxLength;
	}

	public void setRequired(boolean required) {
		this.required = required;
	}

	public void setPrimary(boolean primary) {
		this.primary = primary;
	}

	public void setPropertyMean(String propertyMean) {
		this.propertyMean = propertyMean;
	}

	@Override
	public String toString() {
		return "BuildColumn [functionName=" + functionName + ", maxLength="
				+ maxLength + ", primary=" + primary + ", propertyMean="
				+ propertyMean + ", propertyName=" + propertyName
				+ ", required=" + required + ", typeName=" + typeName + "]";
	}

}
